package com.hsj.goldstore.mvp.model;

import com.hsj.goldstore.base.BaseModel;
import com.hsj.goldstore.base.ResultCallback;
import com.hsj.goldstore.bean.GoodsBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/4/1.
 */

public class GoodsTypeModel extends BaseModel implements IGoodsTypeModel {

    @Override
    public void getGoodsList(int type, ResultCallback resultCallback) {
        List<GoodsBean> list = new ArrayList<>();
        switch (type) {
            case 0:
                list.add(new GoodsBean());
                break;
            case 1:
                list.add(new GoodsBean());
                list.add(new GoodsBean());

                break;
            default:
                list.add(new GoodsBean());
                list.add(new GoodsBean());
                list.add(new GoodsBean());
                break;
        }
        resultCallback.onSuccess(list,0,"获取商品成功");
    }
}
